};
function _cleanMarkup(text) {
+ // Support &, ", ', < and >, escape all other
+ // occurrences of '&'.
+ let _text = text.replace(/&(?!amp;|quot;|apos;|lt;|gt;)/g, "&");
// Support <b>, <i>, and <u>, escape anything else
// so it displays as raw markup.
- return text.replace(/<(\/?[^biu]>|[^>\/][^>])/g, "<$1");
+ return _text.replace(/<(\/?[^biu]>|[^>\/][^>])/g, "<$1");
}
// Notification:
popIn: function() {
if (this.actor.row_count <= 1)
return false;
-
Tweener.addTween(this._bannerLabel,
{ opacity: 255,
time: ANIMATION_TIME,